package com.lys.service;

import com.lys.vo.City;
import com.lys.vo.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("weather-eureka-client-zuul")
public interface DataClient {

    @GetMapping("/city/city/listCity")
    List<City> cityList() throws Exception;

    @GetMapping("/data/weather/cityKey/{key}")
    WeatherResponse getDataByCityKey(@PathVariable("key") String key);
}
